import {request} from "./request";

export function getUsers(params) {
  return request({
    method: 'get',
    url: 'users',
    params
  })
}
export function putUserState(uid, type) {
  return request({
    method: 'put',
    url: `users/${uid}/state/${type}`
  })
}
export function postUser(params) {
  return request({
    method: 'post',
    url: 'users',
    params
  })
}